package com.bootdo.system.service.impl;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import com.bootdo.common.domain.Tree;
import com.bootdo.system.dao.PayDao;
import com.bootdo.system.domain.DeptDO;
import com.bootdo.system.domain.PayDO;
import com.bootdo.system.service.PayService;
import com.bootdo.system.vo.UserVO;

@Transactional
@Service
public class PayServiceImpl implements PayService {
	
	@Autowired 
	PayDao payDao;

	@Override
	public PayDO get(Long id) {
		// TODO Auto-generated method stub
		return payDao.get(id);
	}

	@Override
	public List<PayDO> list(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return payDao.list(map);
	}

	@Override
	public List<PayDO> listUser(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int count(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return payDao.count(map);
	}

	@Override
	public int save(PayDO user) {
		// TODO Auto-generated method stub
		return payDao.save(user);
	}

	@Override
	public int update(PayDO user) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int remove(PayDO payDo) {
		// TODO Auto-generated method stub
		return payDao.remove(payDo);
	}

	@Override
	public int batchremove(Long[] userIds) {
		// TODO Auto-generated method stub
		return payDao.batchRemove(userIds);
	}

	@Override
	public boolean exit(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Set<String> listRoles(Long userId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int resetPwd(UserVO userVO, PayDO PayDO) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int adminResetPwd(UserVO userVO) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Tree<DeptDO> getTree() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updatePersonal(PayDO PayDO) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Map<String, Object> updatePersonalImg(MultipartFile file, String avatar_data, Long userId) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updatePhone(PayDO PayDO) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public boolean noexit(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<PayDO> listPayDo(PayDO payDo) {
		List<PayDO> listPayDo = payDao.listPayDo(payDo);
		return listPayDo;
	}

	@Override
	public List<PayDO> listPerformance() {
		List<PayDO> listPerformance = payDao.listPerformance();
		return listPerformance;
	}




}
